from collections import Counter
from typing import List


class Solution:
    def mostCommonWord(self, paragraph: str, banned: List[str]) -> str:
        #zixie
        for i in paragraph:
            if not i.isalnum() and not i.isspace():
                paragraph = paragraph.replace(i,' ')
        paragraph = paragraph.lower().split( )
        p = Counter(paragraph)
        for i in banned:
            p[i] = 0
        return p.most_common(1)[0][0]
